﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

/* Generated  */
namespace EDMXParserV1
{
        [Serializable]
    public class EndProperty
    {
         public ScalarProperty ScalarProperty { get; set; }

         public String Name { get; set; }

         public static EndProperty New(System.Xml.XmlNode Node)
         {
             EndProperty EndProperty = new EndProperty();
             foreach (XmlAttribute Attribute in Node.Attributes)
             {
                 switch (Attribute.Name)
                 {
                     case "Name":
                         EndProperty.Name = Attribute.Value;
                         break;
                     default:
                         Globals.AttributeSwitchCoder(Attribute);
                         break;
                 }

             }

             foreach (XmlNode ChildNode in Node.ChildNodes)
             {
                 switch (ChildNode.Name)
                 {
                     case "ScalarProperty":
                         EndProperty.ScalarProperty = ScalarProperty.New(ChildNode);
                         break;
                     default:
                         Globals.NodeSwitchCoder(ChildNode);
                         break;
                 }
             }

             return EndProperty;
         }
    }
}
